<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body style="margin-top: 0; margin-left: 0; background-color: white">
<div align="center">
<table width="800" style="border: 3px solid #196f99;" cellspacing="0"
	cellpadding="0" rules="none">
	<tr>
		<td><!--#054463 font-face:verdana; font-size:12pt; --> <img
			src="Wayden.jpg" align="left" HSPACE=0></td>
	</tr>
	<tr>
		<td><!--#054463 font-face:verdana; font-size:12pt; -->
		<table width="auto" height="auto" border="0" cellspacing="0"
			cellpadding="0" rules="none">
			<tr>
				<td colspan=2><!--#054463 font-face:verdana; font-size:12pt; -->
				<table width="180" height=700 style="background-color: #ebf3fd;">
					<tr>
						<td height="50" width="180" bgcolor="#339999">&nbsp;</td>
					</tr>
					<tr>
						<td colspan=2>&nbsp;</td>
					</tr>
					<tr>
						<td>
						<table width="180" align="center"
							style="background-color: #ebf3fd;">
							<tr>
								<td>Hello!</td>
								<td>
								<%
								    out.println(session.getAttribute("login"));
								%>
								</td>
							</tr>
							<tr>
								<td><b></b></td>
								<td><form action="logout.jsp" method="post"><input type="submit" name="Submit" value="SignOut"
									style="" align="left"></form></td>
							</tr>

							<tr>
								<td><s:url id="profile" action="profile">
									
								</s:url> <s:a href="%{profile}">Profile</s:a></td>
								<td><s:url id="friend" action="friend">
									
								</s:url> <s:a href="%{friend}">Friends</s:a></td>


								<td><s:url id="messages" action="messages">
									
								</s:url> <s:a href="%{messages}">Messages</s:a></td>
								<td></td>
							</tr>
							<!--<tr><td colspan=2>&nbsp;</td></tr>-->
						</table>
						</td>
					</tr>
					<tr>
						<td height="650" width="180" bgcolor="#339999">&nbsp;</td>
					</tr>
				</table>
				</td>
				<td height="700" width="700"><!--#054463 font-face:verdana; font-size:12pt; -->
			
				<table align="center" width="500">
					<tr>
						<td width="500" height="700" valign="top">

<s:url action="welcome" id="welcome">

</s:url>
<center><s:a href="%{welcome}">welcome page</s:a></center>

<s:form action="addFriend">
	<s:textfield name="name"></s:textfield>
	<s:hidden name="id"></s:hidden>
	<s:submit value="Add friend"></s:submit>
</s:form>



<s:iterator value="aa">

	<s:url action="sendMessage" id="message">
		<s:param name="id2" value="id"></s:param>
	</s:url>

	<s:a href="%{message}">
		<s:property value="name"></s:property>
		
	</s:a>

	<s:url action="deleteFriend" id="delete">
		<s:param name="id2" value="id"></s:param>
	</s:url>

	<s:a href="%{delete}">
		<s:text name="delete"></s:text>
		
	</s:a>	

	<s:url action="viewFriend" id="view">
		<s:param name="id2" value="id"></s:param>
	</s:url>

	<s:a href="%{view}">
		<s:text name="view"></s:text>
		
	</s:a>	

<br>
</s:iterator>


							</td>
					</tr>
				</table>
		</table>
		</td>
		</td>
	</tr>
</table>
</td>
</tr>
<tr>
	<td width="800" height="20">
	<p align="center"><font
		style="font-family: tahoma; font-size: 10px;"> <i>&copy;
	Copyright training Антон Lucky Cat, Лиходед Сашка, Микола и Тарас
	Одинский </i> </font>
	</td>
</tr>
</table>
</body>
</html>